var phoneInput = document.querySelector("phoneInput");

document.querySelector("#verCodeBtn").onclick = function() {
    if (phoneInput.nodeValue.length != 11){
        alert("手机号码不正确");
    } else {
        alert ("发送成功");
    }
}